package com.ice.delay.task.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ice.delay.task.core.model.DelayTaskLock;
import com.ice.delay.task.dao.DelayTaskLockDao;
import com.ice.delay.task.service.DelayTaskLockService;
import org.springframework.stereotype.Service;

/**
 * @author wangwei
 * @Date 2022/5/30 22:20
 */
@Service
public class DelayTaskLockServiceImpl extends ServiceImpl<DelayTaskLockDao, DelayTaskLock> implements DelayTaskLockService {

    /**
     * 获取锁
     */
    @Override
    public void selectLock() {
        baseMapper.selectLock();
    }

    @Override
    public void selectInitLock() {
        this.baseMapper.selectInitLock();
    }
}
